//
//  WSOrderDetailWaitPayController.m
//  FD
//
//  Created by xiaofang wang on 2018/11/2.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//  代付款、待评价

#import "WSOrderDetailWaitPayController.h"

//vc
#import "EvaluateController.h"

//tool
#import "FDSystemTool.h" //电话

@interface WSOrderDetailWaitPayController ()

@end

@implementation WSOrderDetailWaitPayController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)clickOrderFooterViewActionType:(OrderFooterViewActionType)actionType {
    switch (actionType) {
        case OrderFooterViewActionLeft: {
            FDLog(@"左边的 联系商家");
            [FDSystemTool fd_makePhone:self.shopPhone];
            
        }break;
        case OrderFooterViewActionTypeRight: {
            FDLog(@"右边的 评价、立即付款、再来一单");
            
            [self skipToEvaluate];
            
        }break;
        default:
            break;
    }
}

- (void)skipToEvaluate {
    EvaluateController *evaluateVC = [[EvaluateController alloc] init];
    evaluateVC.fdDeliveryType = FDDeliveryTypeWaiSong; //外送评价
    evaluateVC.userOrderId = self.orderId;
    [self.navigationController pushViewController:evaluateVC animated:YES];
}
@end
